package com.yunfeng.aolin.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yunfeng.common.entity.Idable;

@Entity
@Table(name = "aolin_purchasematerials")
public class PurchaseMaterials implements Idable<Long> {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/**
	 * 采购单号
	 */
	@Column(nullable = false, length = 255)
	private String danhao;

	/**
	 * 要求到货日期
	 */
	@Column(nullable = false, length = 19)
	@Temporal(TemporalType.TIMESTAMP)
	private Date yqriqi;

	/**
	 * 实际到货日期
	 */
	@Column(nullable = false, length = 19)
	@Temporal(TemporalType.TIMESTAMP)
	private Date sjriqi;

	/**
	 * 供应商
	 */
	@Column(nullable = false, length = 255)
	private String gongyinshang;

	/**
	 * 材料名称
	 */
	@Column(nullable = false, length = 255)
	private String mingcheng;

	/**
	 * 材料规格
	 */
	@Column(nullable = false, length = 255)
	private String guige;

	/**
	 * 数量(R)
	 */
	@Column(nullable = false, length = 11)
	private String shuliang;

	/**
	 * 采购m数
	 */
	@Column(nullable = false, length = 11)
	private String caigoushu;

	/**
	 * 到货m数
	 */
	@Column(nullable = false, length = 11)
	private String daohuoshu;

	/**
	 * 总平米数量
	 */
	@Column(nullable = false, length = 11)
	private String total;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param danhao
	 *            the danhao to set
	 */
	public void setDanhao(String danhao) {
		this.danhao = danhao;
	}

	/**
	 * @return the danhao
	 */
	public String getDanhao() {
		return this.danhao;
	}

	/**
	 * @param yqriqi
	 *            the yqriqi to set
	 */
	public void setYqriqi(Date yqriqi) {
		this.yqriqi = yqriqi;
	}

	/**
	 * @return the yqriqi
	 */
	public Date getYqriqi() {
		return this.yqriqi;
	}

	/**
	 * @param sjriqi
	 *            the sjriqi to set
	 */
	public void setSjriqi(Date sjriqi) {
		this.sjriqi = sjriqi;
	}

	/**
	 * @return the sjriqi
	 */
	public Date getSjriqi() {
		return this.sjriqi;
	}

	/**
	 * @param gongyinshang
	 *            the gongyinshang to set
	 */
	public void setGongyinshang(String gongyinshang) {
		this.gongyinshang = gongyinshang;
	}

	/**
	 * @return the gongyinshang
	 */
	public String getGongyinshang() {
		return this.gongyinshang;
	}

	/**
	 * @param mingcheng
	 *            the mingcheng to set
	 */
	public void setMingcheng(String mingcheng) {
		this.mingcheng = mingcheng;
	}

	/**
	 * @return the mingcheng
	 */
	public String getMingcheng() {
		return this.mingcheng;
	}

	/**
	 * @param guige
	 *            the guige to set
	 */
	public void setGuige(String guige) {
		this.guige = guige;
	}

	/**
	 * @return the guige
	 */
	public String getGuige() {
		return this.guige;
	}

	/**
	 * @param shuliang
	 *            the shuliang to set
	 */
	public void setShuliang(String shuliang) {
		this.shuliang = shuliang;
	}

	/**
	 * @return the shuliang
	 */
	public String getShuliang() {
		return this.shuliang;
	}

	/**
	 * @param caigoushu
	 *            the caigoushu to set
	 */
	public void setCaigoushu(String caigoushu) {
		this.caigoushu = caigoushu;
	}

	/**
	 * @return the caigoushu
	 */
	public String getCaigoushu() {
		return this.caigoushu;
	}

	/**
	 * @param daohuoshu
	 *            the daohuoshu to set
	 */
	public void setDaohuoshu(String daohuoshu) {
		this.daohuoshu = daohuoshu;
	}

	/**
	 * @return the daohuoshu
	 */
	public String getDaohuoshu() {
		return this.daohuoshu;
	}

	/**
	 * @param total
	 *            the total to set
	 */
	public void setTotal(String total) {
		this.total = total;
	}

	/**
	 * @return the total
	 */
	public String getTotal() {
		return this.total;
	}
}
